from flask import Flask, request, make_response, redirect, abort, render_template

app = Flask(__name__)


@app.route('/<is_login>/')
def index1(is_login):
    if is_login == '1':
        user = {
            'username': u'17bdw',
            'age': 20
        }
        return render_template('index1.html',user=user)
    else:
        return render_template('index1.html')


if __name__ == '__main__':
    app.run(debug=True)